export interface AttrValueModel {
  id?: number;
  valueName: string;
  attrId?: number;
  isShowEdit?: boolean;
}

export type AttrValueListModel = AttrValueModel[];

export interface AttrModel {
  id?: number;
  attrName: string;
  categoryId: number;
  categoryLevel: number;
  attrValueList: AttrValueListModel;
}

// Pick从AttrModel类型中挑选一些类型组成一个新类型
export type PickAttrModel = Pick<AttrModel, 'attrName' | 'attrValueList' | 'id'>;

export type AttrListModel = AttrModel[];
